package cn.yulezhisi.service.impl;

import cn.yulezhisi.mapper.SysRoleMapper;
import cn.yulezhisi.service.SysRoleService;
import cn.yulezhisi.common.object.BaseServiceImpl;
import cn.yulezhisi.entity.SysRole;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author yulezhisi
 **/

@Service
public class SysRoleServiceImpl extends BaseServiceImpl<SysRole>  implements SysRoleService {

	@Resource
	private SysRoleMapper sysRoleMapper;
    
    @Override
    public List<SysRole> listRoleByUserId(Integer id) {
        return sysRoleMapper.selectRolesByUserId(id);
    }
}
